use core::arch::{asm, global_asm};

global_asm!(include_str!("example.s"));
unsafe extern "C" {
    pub fn example5_1();
}

// 打印两个整数的程序
#[unsafe(no_mangle)]
fn example5_print() {
    let mut arg1: i32 = 0;
    unsafe {
        asm!(
            r#"
                mv {0}, a0
            "#,
            out(reg) arg1,
        );
    }
    println!("data: {}", arg1 as i32);
}
